var appView = appView || {};
!function (n, r) {
    var e;
    r.androidDonwUrl = "/Xpocker/open/api/file/apps/android/Runner.apk", r.iosDonwUrl = "itms-services://?action=download-manifest&url=/Xpocker/static/app/manifest.plist",  r.isIosFormal = !0,   r.isMobile = function () {
        return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)
    }, r.browser = {
        versions: (e = navigator.userAgent, {
            trident: -1 < e.indexOf("Trident"),
            presto: -1 < e.indexOf("Presto"),
            webKit: -1 < e.indexOf("AppleWebKit"),
            gecko: -1 < e.indexOf("Gecko") && -1 == e.indexOf("KHTML"),
            mobile: !!e.match(/AppleWebKit.*Mobile.*/) || !!e.match(/AppleWebKit/),
            ios: !!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),
            android: -1 < e.indexOf("Android") || -1 < e.indexOf("Linux"),
            iPhone: -1 < e.indexOf("iPhone") || -1 < e.indexOf("Mac"),
            iPad: -1 < e.indexOf("iPad"),
            webApp: -1 == e.indexOf("Safari")
        }), language: (navigator.browserLanguage || navigator.language).toLowerCase()
    }, r.isWeixin = function () {
        return "micromessenger" == navigator.userAgent.toLowerCase().match(/MicroMessenger/i)
    }, r.openDownloAnd = function () {
        r.browser.versions.ios || r.browser.versions.iPhone || r.browser.versions.iPad ? alert("检测到您是苹果手机请选择苹果下载链接!") :(this.christmasActivity(), n.location.href = r.androidDonwUrl)
    }, r.openDownloIos = function () {
        r.browser.versions.ios || r.browser.versions.iPhone || r.browser.versions.iPad ? (this.christmasActivity(), n.location.href = r.iosDonwUrl) : alert("检测到您是安卓手机请选择安卓下载链接!")
    }, r.christmasActivity = function () {
        /*var i = $(window).height(), n = $(window).width();
        $(".open-brew").width(n), $(".weixinimg").width(.9 * n), $(".weixin-tip").css("height", i), $(".weixin-tip").show();*/
    }
}(window, appView);